package xwj.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import xwj.example.demo.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import xwj.example.demo.exception.ProductAdminException;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xwj
 * @since 2022-10-30
 */
public interface IProductService extends IService<Product> {

     Product addProduct(Product product) throws ProductAdminException;
     Product getProduct(long id);
     void updateProduct(long id,Product product) throws ProductAdminException;
     void deleteProduct(long id);
     IPage findProduct( Map<String,Object> condition,int pageNum,int pageSize);
}
